﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<div style="width: 100%;text-align:center;vertical-align:middle;">
<%using (Ajax.BeginForm("AddUser", "User", null, new AjaxOptions() { UpdateTargetId = "usercontent", HttpMethod = "Post", OnBegin = "check" }))
  { %>
<table>
    <tr>
        <td style="width: 100px;">
            用户名：
        </td>
        <td>
            <input type="text" id="tbUser" name="tbUser" />
        </td>
    </tr>
    <tr>
        <td>
            密码：
        </td>
        <td>
            <input type="password" id="tbPassword" name="tbPassword" />
        </td>
    </tr>
    <tr>
        <td>
            邮箱：
        </td>
        <td>
            <input type="text" id="tbEmail" name="tbEmail" />
        </td>
    </tr>
    <tr>
        <td>
            手机号：
        </td>
        <td>
            <input type="text" id="tbPhonenumber" name="tbPhonenumber" />
        </td>
    </tr>
    <tr>
        <td colspan="2" style="text-align: left;">
            <input type="submit" value="确认" />
        </td>
    </tr>
</table>
<script type="text/javascript">
    function check() {
        return true;
    }
    </script>
<%} %>
</div>